package com.xzp.blog.entity.dto.response;

/**
 * 统一Json 范围实体类
 * @author Xbear
 */
public class GlobalResponse {


    protected int resultCode;  //返回结果代码
    protected boolean hasError;  //错误标志位

    private GlobalResponse() {
    }

    public GlobalResponse(int resultCode, boolean hasError) {
        this.resultCode = resultCode;
        this.hasError = hasError;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public boolean isHasError() {
        return hasError;
    }

    public void setHasError(boolean hasError) {
        this.hasError = hasError;
    }
}
